#include <iostream>
#include <new>
#include <vector>

using namespace std;

vector<int> *new_vec()
{
    vector<int> *p = new vector<int>(0);
    return p;
}

vector<int> *input(vector<int> *v)
{
    int i;
    //cout << "ÊäÈëintÔªËØ£º";
    while (cin >> i)
        (*v).push_back(i);
    return v;
}

void output(vector<int> *vv)
{
    //cout << "´òÓ¡vector£º";
    for (const auto &i : (*vv))
        cout << i << " ";
}
int main()
{
    vector<int> *pv = new_vec();
    output(input(pv));
    delete pv;
    return 0;
}